//
//  PPTemplateModel.h
//  pickpic
//
//  Created by 胡文广 on 2017/4/15.
//  Copyright © 2017年 MicroDream. All rights reserved.
//

#import "PPBaseModel.h"


typedef enum : NSUInteger {
    PPTemplateDownLoadTypeNot = 0,
    PPTemplateDownLoadTypeBeing = 1,
    PPTemplateDownLoadTypeFinish = 2,
    PPTemplateDownLoadTypeEmploy = 3, //已使用
} PPTemplateDownLoadType;

@class PPTemplateCoverFrame,PPTemplateDescModel,PPTemplateInnerModel,PPTemplateShareModel,PPEbookAlbum;
@interface PPTemplateModel : PPBaseModel<NSCoding, NSCopying>


//下载状态
@property (nonatomic,assign) PPTemplateDownLoadType downloadType;
@property (nonatomic,assign) double receivedLength;


@property (nonatomic,strong) NSMutableArray *albums;

//模板ID
@property (nonatomic,copy) NSString *eBookTemplateId;
@property (nonatomic,assign) NSInteger orderNum;
@property (nonatomic,assign) NSInteger shareMove;
//"title":"模版二",//模版名称
@property (nonatomic,copy) NSString *title;
@property (nonatomic,copy) NSString *describe;
@property (nonatomic,copy) NSString *url1;
@property (nonatomic,copy) NSString *url2;
@property (nonatomic,copy) NSString *url3;
@property (nonatomic,copy) NSString *url4;
@property (nonatomic,copy) NSString *url5;
@property (nonatomic,copy) NSString *url6;

@property (nonatomic,copy) NSString *url7;
@property (nonatomic,copy) NSString *coverImgString;
@property (nonatomic,strong) NSURL *coverImagePath;
//@property (nonatomic,copy) NSString *coverImagePath;
@property (nonatomic,strong) UIImage *coverImg;
@property (nonatomic,copy) NSString *url8;
@property (nonatomic,copy) NSString *url9;
@property (nonatomic,copy) NSString *url10;
@property (nonatomic,copy) NSString *url11;

@property (nonatomic,copy) NSString *shareUrl;

@property (nonatomic,copy) NSString *musicId;
@property (nonatomic,copy) NSString *musicUrl;
@property (nonatomic,copy) NSString *series;


@property (nonatomic,assign) CGFloat progress;


//"url1":"",//模版预览缩略图地址
//"url2":"",//模版预览图（封面页）地址
//"url3":"",//模版预览图（相册描述页）地址
//"url4":"",//模版预览图（内页1）地址
//"url5":"",//模版预览图（内页2）地址
//"url6":"",//模版预览图（封底页）地址
//"url7":"",//封面底图地址
//"url8":"",//封面标题字体包
//"url9":"",//封面用户名字体包
//"url10":"",//相册描述与内文描述字体包
//"url11":"",//封底底图地址

@property (nonatomic,strong) NSMutableArray *previewUrls;

@property (nonatomic,strong) PPTemplateCoverFrame *coverFrameM;
@property (nonatomic,strong) PPTemplateDescModel *descModel;
@property (nonatomic,strong) PPTemplateInnerModel *innerModel;
@property (nonatomic,strong) PPTemplateShareModel *shareModel;

@property (nonatomic,strong) NSMutableArray <UIImage*>*albumImages;
@end
